package com.toKnow.model.dto.transfer;

import com.toKnow.model.dto.UserRegisterDTO;
import com.toKnow.model.entity.UserInfo;
import org.mapstruct.InheritConfiguration;
import org.mapstruct.InheritInverseConfiguration;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper
public interface UserRegisterDTOTransfer {
    UserRegisterDTOTransfer INSTANCE = Mappers.getMapper( UserRegisterDTOTransfer.class );

    @InheritConfiguration
    UserInfo toUserInfo(UserRegisterDTO userRegisterDTO);

    @InheritInverseConfiguration
    UserRegisterDTO fromUserInfo(UserInfo userInfo);
}
